<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="icom.acm.bean.T_USER" %>    
<%
T_USER user = (T_USER)session.getAttribute("user");
if (user==null){
	return ;
}else if (user.getU_ROLE()<0){
	String token = java.util.UUID.randomUUID().toString();
	session.setAttribute("token", token);
	String email = user.getU_EMAIL();
	
	StringBuffer sb = new StringBuffer();
	String url = "UserActivate_sendMail?token="+token+"&url="+email.substring(email.indexOf('@')+1)+"&email="+email+"&ua.UA_U_ID="+user.getU_ID();
	sb.append("亲爱的 \""+user.getU_NICKNAME()+"\" ");
	sb.append("<font size='4' color='red'>");
	sb.append("您的账户还未激活或激活码过期!");
	sb.append("</font><br/>现在激活,点击激活 发送激活码到您的邮箱 "+user.getU_EMAIL());
	sb.append("<a href='"+url+"'>激活</a>");	
	out.println(new String(sb));
	System.out.println(url);
	return ;
}
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>成功激活Coding</title>
</head>
<body>
<br /><br /><br />
亲爱的用户： <%=user.getU_NICKNAME() %>
您已成功激活，请立即进入Coding畅游，<a href="User_index">点击进入首页</a>
</body>
</html>